package com.rocksdata.mc.entity;

import java.io.Serializable;
import java.util.List;

public class TeacherContactInfo implements Serializable {
	private String departmentCode;
	private String departmentName;
	private List<TeacherInfo> staffs;
	public boolean isChecked;

	public String getDepartmentCode() {
		return departmentCode;
	}

	public void setDepartmentCode(String departmentCode) {
		this.departmentCode = departmentCode;
	}

	public String getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	public List<TeacherInfo> getStaffs() {
		return staffs;
	}

	public void setStaffs(List<TeacherInfo> staffs) {
		this.staffs = staffs;
	}

	@Override
	public boolean equals(Object o) {
		if(o == null){
			return false;
		}
		TeacherContactInfo info = null;
		try {
			info = (TeacherContactInfo) o;
		}catch (Exception e){

		}
		if(info == null){
			return false;
		}
		return info.departmentCode.equals(departmentCode);
	}

	@Override
	public String toString() {
		return departmentName;
	}
}
